package com.junxonline.instant.dao.entity.model.config;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.junxonline.instant.common.entity.common.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统参数表实体类
 *
 * @author JunX
 * @date 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_setting")
public class Setting extends CommonEntity {

    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    /**
     * 参数名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 参数值
     */
    @TableField(value = "value")
    private String value;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

}
